namespace :bilibiliranking do
  desc "bilibili ranking example op"
  task :op => :environment do
    require 'lib/tasks/vegas_video_maker.rb'
    require 'lib/tasks/bili_ranking_maker.rb'
    include VegasVideoMaker
    BRM.create({:path => "#{BILI_PRO_PATH}#{ENV['pa']}\\"}) do |vvm|
      vvm.op.pics("op", 1..2, {:length => 4, 2 => {:length => 10}}
                 ).pics("rule", 1..4, {:length => 5}
                 ).title(1).music("bilibili.mp3", vvm.vvmtime - 1, :start_time => VVMTime.nl(15))
    end
  end
end